package com.niit.musicserve.dao;

import com.niit.musicserve.entity.RankSong;

import java.util.List;

public interface RankSongMapper {
	
	/**
	 * 为榜单添加歌曲
	 */
	public int insertRankSong(RankSong rankSong);
	
	/**
	 * 删除榜单歌曲
	 */
	public int deleteRankSong(int rankSongId);
	
	/**
	 * 根据歌曲id和榜单id删除
	 */
	public int deleteRankSongByRankIdAndSongId(int rankId,int rankSongId);
	
	/**
	 * 修改榜单歌曲
	 */
	public int updateRankSong(RankSong rankSong);
	
	/**
	 * 根据id查询
	 */
	public RankSong selectByPrimaryKey(int rankSongId);
	
	/**
	 * 查询所有
	 */
	public List<RankSong> allRankSong();
	
	/**
	 * 根据榜单id查询
	 */
	public List<RankSong> rankSongByRankId(int rankId);
}
